package com.buba.system.service.Impl;

import com.buba.system.dao.AccountMapper;
import com.buba.system.service.AccountService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class AccountServiceImpl implements AccountService {
    private AccountMapper accountMapper;

    @Override
    public int changePassword(Map<String, Object> map) {
        return accountMapper.changePassword(map);
    }

    @Override
    public long addSystemUser(Map<String, Object> map) {
        return accountMapper.addSystemUser(map);
    }

    @Override
    public Integer delsystemAll(List<String> list) {
        return accountMapper.delsystemAll(list);
    }

    @Autowired
    public void setAccountMapper(AccountMapper accountMapper) {
        this.accountMapper = accountMapper;
    }


}
